package o;

import android.content.Context;
import com.huawei.appgallery.foundation.account.bean.UserSession;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.LinkedHashMap;
import o.dge.d;

public final class ehb {
    private static ehb ˊ;
    private static final Object ˎ = new Object();
    private eua ॱ = eua.ˏ();

    private ehb() {
    }

    public static ehb ˏ() {
        ehb o_ehb;
        synchronized (ˎ) {
            if (ˊ == null) {
                ˊ = new ehb();
            }
            o_ehb = ˊ;
        }
        return o_ehb;
    }

    public int ˋ() {
        return this.ॱ.ॱ("reserve_dld_status", 1);
    }

    public void ˋ(int i) {
        Logger.ˎ("SettingsMgr", "set mobile data download status, status=" + i);
        this.ॱ.ˊ("reserve_dld_status", i);
        String userId = UserSession.getInstance().getUserId();
        String ॱ = eqp.ॱ();
        Context ˋ = ContentManager.getInstant().getContext();
        if (i == 2) {
            dgh.onEvent(new d(ˋ, "130306").ˏ("01|" + userId + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + ॱ).ˋ());
        } else if (i == 1) {
            dgh.onEvent(new d(ˋ, "130306").ˏ("02|" + userId + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + ॱ).ˋ());
        } else if (i == 0) {
            dgh.onEvent(new d(ˋ, "130306").ˏ("05|" + userId + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + ॱ).ˋ());
        } else {
            Logger.e("SettingsMgr", "invalid status, status=" + i);
        }
    }

    public boolean ˎ() {
        return this.ॱ.ˏ("wifi_hotspot_dld_status", false);
    }

    public void ˋ(boolean z) {
        Object obj;
        Logger.ˎ("SettingsMgr", "set wifi hotspot download status, status=" + z);
        this.ॱ.ˋ("wifi_hotspot_dld_status", z);
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        if (z) {
            obj = efx.PUSH_ON;
        } else {
            obj = efx.PUSH_OFF;
        }
        linkedHashMap.put("switch", obj);
        linkedHashMap.put("homeCountry", eqp.ॱ());
        linkedHashMap.put("userID", UserSession.getInstance().getUserId());
        dgh.ˋ("131001", linkedHashMap);
    }

    public void ॱ(boolean z) {
        Logger.ˎ("SettingsMgr", "set show no apk warning dialog status, status = " + z);
        this.ॱ.ˋ("no_apk_warning_dialog_status", z);
    }

    public boolean ॱ() {
        return this.ॱ.ˏ("no_apk_warning_dialog_status", false);
    }
}
